Skip to content

Fix UMF build on Alpine OS #1294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

wlemkows
Copy link
Contributor

Description

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • CI workflows, not executed per PR (e.g. Nightly), execute properly
  • New tests added, especially if they will fail without my changes
  • Added/extended example(s) to cover this functionality
  • Extended the README/documentation
  • All newly added source files have a license
  • All newly added source files are referenced in CMake files
  • Logger (with debug/info/... messages) is used
  • All API changes are reflected in docs and def/map files, and are tested

@wlemkows wlemkows requested a review from a team as a code owner April 30, 2025 17:39
Comment on lines +157 to +163
#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE
char err[1024];
int err_ret = strerror_r(saveno, err, sizeof(err));
if (err_ret == ERANGE) {
postfix = "[truncated...]";
}
#else
Copy link
Contributor

@lplewa lplewa May 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it different from the apple version? can you just update apple ifdef?

run: |
docker build . -f .github/docker/alpine-3.20.Dockerfile -t alpine_image

- name: Run UMF build on Alpine image
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also run tests on the build (not sure if as part of build.sh or as a separate step here)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting up the necessary dependencies on Alpine is not worth the effort (at least for the purpose of fixing this issue)

@wlemkows wlemkows force-pushed the alpine-umf branch 6 times, most recently from 2000a75 to 28f0fe7 Compare May 30, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants